<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
//求职意向表
class CreateIntentionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('intentions', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('pid');                  //pid 和user_personnels表关联
            $table->integer('uid');                  //用户id
            $table->string('desired_industry',40);//期望行业
            $table->string('desired_career',20);//期望职业
            $table->string('province',20)->nullable();//省
            $table->string('city',20)->nullable();//市
            $table->string('area',20)->nullable();//区
            $table->string('desired_annual_salary');//期望年薪
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('intentions');
    }
}
